{% extends "../layout/layout.html" %} {% block main %}
<div class="container">
  <div class="row">
    {% if error %}
    <div class="alert alert-danger alert-dismissible" role="alert">
      <button
        type="button"
        class="close"
        data-dismiss="alert"
        aria-label="Close"
      >
        <span aria-hidden="true">&times;</span>
      </button>
      {{error}}
    </div>
    {% endif %}
  </div>
  <div class="row">
    <div class="col-md-3"></div>
    <div class="col-md-6">
      <form class="form-horizontal" method="POST" enctype="multipart/form-data" action="api/version">
        <!-- <div class="form-group">
          <label for="version" class="col-sm-2 control-label">版本号</label>
          <div class="col-sm-10">
            <input
              type="text"
              class="form-control"
              id="text"
              name="version"
              placeholder="请输入版本号"
            />
          </div>
        </div> -->
        <div class="form-group">
          <label for="file" class="col-sm-2 control-label">文件包</label>
          <div class="col-sm-10">
            <input type="file" id="file" name="file" />
          </div>
        </div>
        <div class="form-group">
          <label for="version" class="col-sm-2 control-label">版本号</label>
          <div class="col-sm-10">
            <textarea
              rows="10"
              class="form-control"
              id="remark"
              name="remark"
              maxlength="1000"
              placeholder="请输入版本更新信息"
            ></textarea>
          </div>
        </div>
        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">提交</button>
          </div>
        </div>
      </form>
    </div>
    <div class="col-md-3"></div>
  </div>
</div>
{% endblock %}
